<template>
  <header>
    <h1><span class="loc"></span> {{titles}}<span class="robot"></span> <span class="search"></span> </h1>
  </header>
</template>

<script>
export default {
  data () {
    return {
      titles: '知识'
    }
  }
}
</script>
<style scoped>
  header{
    width:100%;
    height:2.45rem;
    line-height: 2.45rem;
    font-size:1rem;
    color:#000000;
    text-align:center;
    background:#ffffff;
    box-shadow:1px 0 1px #ccc;
    position:fixed;
    z-index:10;
  }
  h1{
    font-size:1rem;
    font-weight: 400;
    text-indent:2em;
  }
  .loc{
    display: inline-block;
    width:1rem;
    margin-top:.8rem;
    margin-left:.5rem;
    float:left;
    height:1.1rem;
    background:url("../assets/location.png")no-repeat center;
    background-size:cover;
  }
  .search{
    display: inline-block;
    width:1.5rem;
    margin-top:.6rem;
    margin-right:.8rem;
    float:right;
    height:1.4rem;
    background:url("../assets/search.png")no-repeat center;
    background-size:cover;
  }
  .robot{
    display: inline-block;
    width:1.3rem;
    margin-top:.6rem;
    float:right;
    height:1.3rem;
    background:url("../assets/robot.png")no-repeat center;
    background-size:cover;
    margin-right:.5rem;
  }

</style>
